<?php


namespace app\index\controller;


class Imglist extends Common
{
    public function index(){
        $article = new \app\index\model\Article();
        $imglist = $article->getAllArticles(input('cateid'));
        $page = $imglist->render();
        $this->assign('imglist',$imglist);
        $this->assign('page',$page);
        return view('imglist');
    }
}